package zzz.Text.text9;

import java.util.ArrayList;
import java.util.Scanner;

public class Student {
    public static void main(String[] args) {
            ArrayList<Student_Property> list = new ArrayList<>();
            Student_Property stu1 = new Student_Property("zhang",1234,1511940);
            Student_Property stu2 = new Student_Property("lisi",2345,1940195);
            Student_Property stu3 = new Student_Property("wang",3456,1511955);
            list.add(stu1);
            list.add(stu2);
            list.add(stu3);
        while (true) {
            System.out.println("欢迎来到学生管理系统");
            System.out.println("请选择接下来的操作:1登录 2注册 3忘记密码");
            Scanner sc = new Scanner(System.in);
            int choice = sc.nextInt();
            if(choice == 1){
                Student_Tools.Record(list);
                break;
            }else if(choice == 2){
                Student_Tools.Register(list);
            } else if (choice == 3) {
                Student_Tools.search(list);
        }
        }
    }
}
